package com.travelgroup.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.travelgroup.enums.LeafType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class District {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private String code;

    private String parentCode;

    private LeafType Leaf;

    private Double longitude;

    private Double latitude;

    private LocalDateTime createTime;
}
